{% extends 'index.html' %}
{% block page-content %}
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/css/bootstrap.css">
    <script src="/static/js/jquery-3.3.1.min.js"></script>

</head>
<body>
<div class="container">
    <div class="page-header">
        <h2>添加页面 <small>添加数据</small></h2>
    </div>
    {% include 'form.html' %}
</div>
<script>
    function pop_response(pk, text, id){
        var $option=$('<option>'); //<option></option>
        $option.html(text); // <option>出版社</option>
        $option.val(pk);   //<option value=88>出版社</option>
        $option.attr('selected', 'selected');  //<option value=88 selected='selected' >出版社</option>
        $('#'+id).append($option)
    }
</script>
</body>
{% endblock %}